<?php
/**
 * 化肥老板，具体个人
 * Created by PhpStorm.
 * User: liangtiehui
 * Date: 2016/5/4
 * Time: 18:03
 */

namespace Meidator;


class Boss extends Human
{
    public function __construct($mediator)
    {
        $this->mediator = $mediator;
    }

    public function getThings($number)
    {
        // TODO: Implement getThings() method.
        return $number . '化肥';
    }

    public function buy($name, $number)
    {
        // TODO: Implement buy() method.
        $result = $this->mediator->sell($name, $number);
        echo '我们化肥老板得到了' . $result . "<br/>";
    }

    public function setBoss()
    {

    }
}